<?php


function get_sql_packs_list(){
	$filter['sort_by']      	= 	empty($_REQUEST['sort_by']) ? 'pack_id' : trim($_REQUEST['sort_by']);
	$filter['sort_order']   	= 	empty($_REQUEST['sort_order']) ? 'DESC' : trim($_REQUEST['sort_order']);
	/* 查询 */
	$sql 						= 	" SELECT pack_id, pack_name, pack_img, pack_fee, free_money, pack_desc ".
									" FROM ".'ybr_pack' . 
									" ORDER by " . $filter['sort_by'] . ' ' . $filter['sort_order'];	
    return $sql;
}